extends "../22-3/22-3.gd"


var baseId = ""
var upText1 = "护盾充能效果翻倍"
var upText2 = "强效护盾效果翻倍"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒使全场有护盾的友军获得4层<振奋>", "强效护盾", "effectiveShield", 8)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "effectiveShield":
		effectiveShield()

func effectiveShield():
	for i in getAllChas(2):
		if i.shield <= 0:continue
		i.addBuff(buff.b_zhenFen.new(p4))

var p4 = 4
func upgrade():
	.upgrade()
	if upgraded == 1:
		p3 = 2
	if upgraded == 2:
		p4 = 8